<?php


class GameTable extends Doctrine_Table
{
  public static function getInstance()
  {
    return Doctrine_Core::getTable('Game');
  }

  public function getOverviewQuery($order_by = 'datetime DESC')
  {
    $q = $this->createQuery('g')
      ->orderBy($order_by);

    return $q;
  }
}